// sku管理接口地址
import request from '@/utils/request.js'

// 获取sku列表的接口   url:/admin/product/list/{page}/{limit}  get
export const reqSkuList = (page,limit) => request({url:`/admin/product/list/${page}/${limit}`,method: 'get'})

// sku商品的上架 url:/admin/product/onSale/{skuId} method：get
export const reqSale = (skuId) => request({url:`/admin/product/onSale/${skuId}`, method: 'get'})

// sku商品的下架 url： /admin/product/cancelSale/{skuId}  method：get
export const reqCancel = (skuId) => request({url:`/admin/product/cancelSale/${skuId}`, method: 'get'})

// 获取sku详情  url：/admin/product/getSkuById/{skuId}  get
export const reqSkuById = (skuId) => request({url: `/admin/product/getSkuById/${skuId}`, method: 'get'})